package com.zjhn.ds.netty;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.netty
 * @Author: sxt
 * @CreateTime: 2023-09-20  08:57
 * @Description: 端口参数，配置与配置文件中具体参数类型如：
 * netty:
 *   port: {6001: A, 6002: B, 6003: C}
 * @Version: 1.0
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "netty")
public class PortDefinition {

    private Map<Integer, String> port;

}
